package fr.buildcity.jeu;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

public class Main extends StateBasedGame {

	public Main(String name) {
		super(name);
	}

	@Override
	public void initStatesList(GameContainer arg0) throws SlickException {
	    RenderGame game = new RenderGame();
	    addState(game);
	}

	public static void main(String[] args) {
		try {
			AppGameContainer container = new AppGameContainer(new Main("RomainCity"));
			container.setDisplayMode(860, 600, false);
			container.setTargetFrameRate(60);
			container.setMultiSample(4);
			container.setVSync(true);
			container.start();
		} catch (SlickException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
